<template>
  <div>
    <div class="message-box">
      <div class="message-card">
        <div class="message-card-left">
          <el-image
            :src="require('../../assets/images/default-avatar.jpeg')"
            alt="头像"
            class="avatar"
          ></el-image>
        </div>

        <div class="message-card-middle">
          <div class="line-1"><b>谁</b>对我的视频发表了评论</div>
          <div class="line-2">评论内容</div>
          <div class="line-3">
            <span style="margin-right: 5px">2021-5-30</span>
            <el-button size="mini" icon="el-icon-chat-round">回复</el-button>
            <el-button size="mini" icon="el-icon-thumb">点赞</el-button>
          </div>
        </div>

        <div class="message-card-right">
          <span>视频封面</span>
        </div>
      </div>
      <div class="reply-card">
        <div class="reply-card-left">
          <div class="my-avatar"></div>
        </div>
        <div class="reply-card-middle"></div>
        <div class="reply-card-right"></div>
      </div>
    </div>
  </div>
</template>
<script>
export default {};
</script>
<style>
.message-box {
  background-color: white;
  box-shadow: 0 2px 4px 0 rgb(121 146 185 / 54%);
  margin: 20px;
  height: 200px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  border-radius: 4px;
}

.message-card {
  padding-top: 24px;
  padding-bottom: 24px;
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: row;
  align-items: center;
  border: 1px solid black;
  width: 100%;
}

.message-card-left {
  width: 60px;
  height: 46px;
  align-self: flex-start;
}

.message-card-middle {
  flex: 1;
}

.message-card-middle .line-1 {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-bottom: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  font-size: 14px;
  line-height: 15px;
}

.message-card-middle .line-2 {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  margin-bottom: 10px;
  margin-left: 7px;
  font-size: 14px;
}

.message-card-middle .line-3 {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
}

.message-card-right {
  min-width: 60px;
  margin: -7px 0;
  border: 1px solid black;
  /* right image */
  /* width: 60px;
  height: 60px;
  background: center/cover no-repeat;
  border-radius: 2px;
  
  overflow: hidden; */
}

.avatar {
  /* width: 50px;
  height: 50px; */
  display: block;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* background-image: url("//static.hdslb.com/images/member/noface.gif"); */
}

.reply-card {
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  margin-top: 20px;
}
.reply-card-left {
  width: 60px;
  -ms-flex-negative: 0;
  flex-shrink: 0;
}
.my-avatar {
  display: block;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-image: url("//static.hdslb.com/images/member/noface.gif");
}

.reply-card-center {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  /**子输入框 */
  /* width: 100%;
    height: 65px;
    resize: none;
    background-color: #f4f5f7;
    border: 1px solid #e9eaec;
    overflow: auto;
    border-radius: 4px;
    color: #555;
    padding: 5px 10px;
    font-size: 12px; */
}
.reply-card-right {
  width: 80px;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-box-pack: end;
  -ms-flex-pack: end;
  justify-content: flex-end;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
  /**子按钮 */
  /* width: 80px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start; */
}
</style>